package com.program.facesigninsystem.service;

import com.program.facesigninsystem.entity.UserInfo;

/**
 * @author Mapler
 */
public interface IUserInfoService {
    /****
     * 登录
     * @param openid 微信openid
     * @return [UserInfo]
     */
    UserInfo loginUser(String openid);

    /****
     * 为用户添加token
     * @param uid 用户id
     * @param token 令牌
     */
    void updateToken(String uid,String token);

    /****
     * 添加新用户
     * @param uid 用户id
     * @param openid 微信openid
     * @param token 令牌
     */
    void addUser(String uid,String openid,String token);

    /***
     * 注册人脸
     * @param uid 用户id
     * @param facefeature 脸部特征数据
     */
    void addFace(String uid,byte[] facefeature);

    /***
     * 查询人脸特征
     * @param uid 用户id
     * @return 返回查询出来的人脸特征
     */
    byte[] selectFaceFeature(String uid);
}
